package com.sky.seata.account.controll;

import com.sky.seata.account.service.IAccountService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("account")
public class AccountController {

    @Resource
    private IAccountService accountService;

    @PostMapping("master")
    @ResponseBody
    public Object selectMaster(){
        return accountService.selectMaster();
    }

    @PostMapping("salve")
    @ResponseBody
    public Object selectSalve(){
        return accountService.selectSalve();
    }
}
